home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ppppuuuutttteeeennnnvvvv((((3333CCCC)))) ppppuuuutttteeeennnnvvvv((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- _pppp_uuuu_tttt_eeee_nnnn_vvvv - change or add value to environment
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_tttt_dddd_llll_iiii_bbbb_...._hhhh_>>>>
-
- _iiii_nnnn_tttt _pppp_uuuu_tttt_eeee_nnnn_vvvv _((((_cccc_hhhh_aaaa_rrrr _****_ssss_tttt_rrrr_iiii_nnnn_gggg_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _s_t_r_i_n_g points to a string of the form ``_n_a_m_e_====_v_a_l_u_e.'' _pppp_uuuu_tttt_eeee_nnnn_vvvv makes the
- value of the environment variable _n_a_m_e equal to _v_a_l_u_e by altering an
- existing variable or creating a new one. In either case, the string
- pointed to by _s_t_r_i_n_g becomes part of the environment, so altering the
- string will change the environment. The space used by _s_t_r_i_n_g is no
- longer used once a new string-defining _n_a_m_e is passed to _pppp_uuuu_tttt_eeee_nnnn_vvvv. Because
- of this limitation, _s_t_r_i_n_g should be declared static if it is declared
- within a function.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _eeee_xxxx_eeee_cccc(2), _gggg_eeee_tttt_eeee_nnnn_vvvv(3C), _mmmm_aaaa_llll_llll_oooo_cccc(3C), _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _pppp_uuuu_tttt_eeee_nnnn_vvvv returns non-zero if it was unable to obtain enough space via
- _mmmm_aaaa_llll_llll_oooo_cccc for an expanded environment, otherwise zero.
-
- WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
- _pppp_uuuu_tttt_eeee_nnnn_vvvv manipulates the environment pointed to by _e_n_v_i_r_o_n_,,,, and can be used
- in conjunction with _gggg_eeee_tttt_eeee_nnnn_vvvv. However, _e_n_v_p (the third argument to _m_a_i_n)
- is not changed.
- This routine uses _mmmm_aaaa_llll_llll_oooo_cccc(3C) to enlarge the environment.
- After _pppp_uuuu_tttt_eeee_nnnn_vvvv is called, environmental variables are not in alphabetical
- order. A potential error is to call the function _pppp_uuuu_tttt_eeee_nnnn_vvvv with a pointer
- to an automatic variable as the argument and to then exit the calling
- function while _s_t_r_i_n_g is still part of the environment.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-